from src.core.models.dto.activation_code import ActivationCodeDTO
from src.database.models import ActivationCode


def convert_db_model_to_activation_code_dto(
    activation_code: ActivationCode,
) -> ActivationCodeDTO:
    return ActivationCodeDTO(
        id=activation_code.id,
        title=activation_code.title,
        limit=activation_code.limit,
        reusable=activation_code.reusable,
        uses_number=activation_code.uses_number,
    )
